package com.qf.qfssm.web.master.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName customer
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Customer implements Serializable {
    /**
     *
     */
    private Integer id;

    /**
     *
     */
    private String name;

    /**
     *
     */
    private String password;

    /**
     *
     */
    private String sex;

    /**
     *
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date date;

    /**
     *
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date registTime;

    /**
     *
     */
    private String photopath;

    public Customer(String name, String password, String sex, Date date, Date registTime, String photopath) {
        this.name = name;
        this.password = password;
        this.sex = sex;
        this.date = date;
        this.registTime = registTime;
        this.photopath = photopath;
    }

    public Customer(String name, String password, String sex, Date date, Date registTime) {
        this.name = name;
        this.password = password;
        this.sex = sex;
        this.date = date;
        this.registTime = registTime;
    }

    public Customer(Integer id, String name, String password, String sex, Date date, Date registTime) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.sex = sex;
        this.date = date;
        this.registTime = registTime;
    }

    public Customer(String name, String sex, Date date) {
        this.name = name;
        this.sex = sex;
        this.date = date;
    }
}